#ifndef HABIT_H
#define HABIT_H

#include <QObject>
#include <QList>
#include "task.h"
class Habit
{
public:
    Habit();
    void setTitle(QString title);

    QString getTitle();
    QString getStatus();
    Task getTaskByIndex(int index);
    int getIndex();
    int getID();
    QString title;      // title of this habit
    QString status;     // status of this habit
    QList<Task> taskList;     // list of daily task
    int index;          // index of current task
    int ID;             // ID of this task

};

#endif // HABIT_H
